﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.Profile;

namespace smartphone.App_Code
{
    public class UserProfile:ProfileBase
    {
        public static UserProfile GetUserProfile(string username)
        {
            return Create(username) as UserProfile;
        }

        public static UserProfile GetUserProfile()
        {
            return Create(Membership.GetUser().UserName) as UserProfile;
        }

        [SettingsAllowAnonymous(false)]
        public string CreditCard
        {
            get { return base["CreditCard"] as string; }
            set { base["CreditCard"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string Address1
        {
            get { return base["Address1"] as string; }
            set { base["Address1"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string Address2
        {
            get { return base["Address2"] as string; }
            set { base["Address2"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string City
        {
            get { return base["City"] as string; }
            set { base["City"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string Region
        {
            get { return base["Region"] as string; }
            set { base["Region"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string PostalCode
        {
            get { return base["PostalCode"] as string; }
            set { base["PostalCode"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string Country
        {
            get { return base["Country"] as string; }
            set { base["Country"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string ShippingRegion
        {
            get { return base["ShippingRegion"] as string; }
            set { base["ShippingRegion"] = value; }
        }

        [SettingsAllowAnonymous(false)]
        public string DayPhone
        {
            get { return base["DayPhone"] as string; }
            set { base["DayPhone"] = value; }

        }

        [SettingsAllowAnonymous(false)]
        public string EvePhone
        {
            get { return base["EvePhone"] as string; }
            set { base["EvePhone"] = value; }

        }

        [SettingsAllowAnonymous(false)]
        public string MobPhone
        {
            get { return base["MobPhone"] as string; }
            set { base["MobPhone"] = value; }

        }


    }
}